using B.S.BaseData.Domain;
using BaseData.Domain;
using Microsoft.EntityFrameworkCore;
using SmartTracking.Domain.EWE;
using SmartTracking.Domain.HQX;
using SmartTracking.Domain.Sheep;
using SmartTracking.Domain.UserInfo;
using SmartTracking.Domain.ZXL;

namespace SmartTracking.Infrastructure
{
    public class DataDbContext : DbContext
    {
        public DataDbContext(DbContextOptions options) : base(options)
        {
        }
        #region LYC
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<Users> Users { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Roles> Roles { get; set; }
        /// <summary>
        /// 用户角色中间表
        /// </summary>
        public DbSet<UserRoleMiddle> UserRoleMiddle { get; set; }
        /// <summary>
        /// 权限表
        /// </summary>
        public DbSet<Permissions> Permissions { get; set; }
        /// <summary>
        /// 角色权限中间表
        /// </summary>
        public DbSet<RolePermissionsMiddle> RolePermissionsMiddle { get; set; }
        /// <summary>
        /// 羊场表
        /// </summary>
        public DbSet<SheepFarm> SheepFarm { get; set; }
        /// <summary>
        ///  栋舍表
        /// </summary>
        public DbSet<PoultryHouse> poultryHouse { get; set; }
        #endregion

        #region TCY
        /// <summary>
        /// 母羊分娩
        /// </summary>
        public DbSet<Ewedeliverys> Ewedeliverys { get; set; }
        /// <summary>
        /// 母羊配种
        /// </summary>
        public DbSet<Ewematings> Ewematings { get; set; }
        /// <summary>
        /// 母羊妊娠
        /// </summary>
        public DbSet<Pregnancys> Pregnancys { get; set; }
        /// <summary>
        /// 母羊断奶
        /// </summary>
        public DbSet<Weanings> Weanings { get; set; }
        /// <summary>
        /// 母羊配种主表
        /// </summary>
        public DbSet<MainMating> MainMatings { get; set; }
        /// <summary>
        /// 母羊分娩主表
        /// </summary>
        public DbSet<MainDelivery> MainDeliverys { get; set; }
        /// <summary>
        /// 母羊妊娠主表
        /// </summary>
        public DbSet<MainPregnancy> MainPregnancys { get; set; }
        /// <summary>
        /// 母羊断奶主表
        /// </summary>
        public DbSet<MainWeaning> MainWeanings { get; set; }
        #endregion

        #region ZXL
        /// <summary>
        /// 羊只死亡表
        /// </summary>
        public DbSet<Death> Deaths { get; set; }
        /// <summary>
        /// 羊只淘汰表
        /// </summary>
        public DbSet<Eliminate> Eliminates { get; set; }
        /// <summary>
        /// 采购表
        /// </summary>
        public DbSet<Procurement> Procurements { get; set; }
        /// <summary>
        /// 销售表
        /// </summary>
        public DbSet<Sales> Sales { get; set; }
        /// <summary>
        /// 羊只死亡表头
        /// </summary>
        public DbSet<Deathhead> Deathheads { get; set; }
        /// <summary>
        /// 羊只淘汰表头
        /// </summary>
        public DbSet<Eliminatehead> Eliminateheads { get; set; }
        /// <summary>
        /// 采购表头
        /// </summary>
        public DbSet<Procurementhead> Procurementheads { get; set; }
        /// <summary>
        /// 销售表头
        /// </summary>
        public DbSet<Saleshead> Salesheads { get; set; }

        #endregion

        #region HQX
        /// <summary>
        /// 后裔档案
        /// </summary>
        public virtual DbSet<DescendantFile> DescendantFiles { get; set; }
        /// <summary>
        /// 种母档案
        /// </summary>
        public virtual DbSet<EweFile> EweFiles { get; set; }
        /// <summary>
        /// 种公档案
        /// </summary>
        public virtual DbSet<RamFile> RamFiles { get; set; }
        /// <summary>
        /// 羊只档案
        /// </summary>
        public virtual DbSet<SheepRecords> Sheep_Records { get; set; }
        /// <summary>
        /// 初期档案
        /// </summary>
        public virtual DbSet<Initialform> Initialforms { get; set; }
        public virtual DbSet<EweHistoryRecord> EweHistoryRecords { get; set; }
        #endregion
    }
}
